import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/view/Index/index.vue'
import Test from '@/components/test.vue'
import Login from '@/view/Login/login.vue'
import Register from '@/view/Register/register.vue'
import Detail from '@/view/Detail/detail.vue'
import Shopping from '@/view/ShoppingCar/shopping.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },{
      path:'/test',
      component:Test
    },{
      path:'/login',
      component:Login
    },{
      path:'/register',
      component:Register
    },{
      path:'/detail/:goodsId',
      component:Detail
    },{
      path:'/shopping',
      component:Shopping
    }
  ]
})
